You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > UniformFit Method > Statistics.UniformFit Method ([In] TVec, out double, out double, double[], double[], double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.UniformFit Method ([In] TVec, out double, out double, double[], double[], double)

Calculate parameters for uniformly distributed values.

Syntax
C#
Visual Basic
public static void UniformFit([In] TVec X, out double low, out double high, ref double[] PCILow, ref double[] PCIHigh, double Alpha);
Parameters 
Description 
[In] TVec X 
Stores data which is assumed to be uniformly distributed. 
out double low 
Return uniform distribution parameter estimator Low. 
out double high 
Return uniform distribution parameter estimator High. 
ref double[] PCILow 
Low (1-Alpha)*100 percent confidence interval. 
ref double[] PCIHigh 
High (1-Alpha)*100 percent confidence interval. 
double Alpha 
Confidence interval percentage. 

RandomUniform, UniformStat

The following example generates 100 random uniformly distributed values and then uses UniformFit routine to extract used Low and High parameters

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector vec1 = new Vector(1000,false); // first, generate 1000 randomly Weibull distributed // numbers with parameters Low=1.5 and High =2.2 StatRandom.RandomUniform(1.5,2.2,vec1,-1); // Now extract the Low,High and their 95% confidence intervals. double resLow,resHigh; double[] CILow = new double[2]; double[] CIHigh = new double[2]; Statistics.UniformFit(vec1,out resLow,out resHigh,out CILow,out CIHigh, 0.05); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!